`use strict`

let Koa=require("koa");
let bodyparser=require("koa-bodyparser");
let contrulers=require("./contrulers");
const minor = require("./minor");
let statics=require("koa-static");
let model=require('./models');
let app=new Koa();


app.use(statics(__dirname+'/static'));
app.use(bodyparser());
app.use(minor);

app.use(contrulers());


// (async ()=>{
//     await model.sync();
// })();

// app.use(async (ctx,next)=>{
//     ctx.render('login.html');
// })
let port=5000;
app.listen(port);

console.log(`http://127.0.0.1:${port}`);